package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.dao.impl.player.UserSmallGameStageDaoImpl;
import com.yanqu.road.entity.smallgame.UserSmallGameStageData;

import java.util.Map;

/**
 * @Author hyx
 * @Date 2022/9/28
 */
public class UserSmallGameBusiness {
    public static Map<Integer, UserSmallGameStageData> getUserSmallGameStageData(long userId) {
        return new UserSmallGameStageDaoImpl().getUserSmallGameStageData(userId);
    }

    public static boolean addUserSmallGameStageData(UserSmallGameStageData data) {
        return new UserSmallGameStageDaoImpl().add(data);
    }

    public static boolean updateUserSmallGameStageData(UserSmallGameStageData data) {
        return new UserSmallGameStageDaoImpl().update(data);
    }

}
